keybyvalue c#

98

keybyvalue c# -

var myKey = myDict.FirstOrDefault(x => x.Value == "myValue").Key;
// return the first key finded in the dict associated to this value

Comments

Submit
0 Comments